//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function getBuidList(params) {
    return request({
        url: 'admin/build/list',
        method: 'POST',
        data: params
    });
};
export async function getBuild(param) {
    return request({
        url: 'admin/build/detail?id=' + param.id,
        method: 'GET',
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function auditBuild(params) {
    let id = params.id
    return request({
        url: 'admin/build/audit',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function delBuild(params) {
    let id = params.id
    return request({
        url: 'admin/build/delete/' + id,
        method: 'GET',
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function saveBuildOrUpdate(params) {
    return request({
        url: 'admin/build/saveOrUpdate',
        method: 'POST',
        data: params
    });
};
